<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <script>
        //箭头函数
        //1.1. 嵌入两参数
        const sum = (a,b)=>{
            return a+b;
        }
        //1.2. 嵌入两参数
        const power=a=>{
            return a*a;
        }
        //2.1 函数块中有多行代码
        const test=()=>{
            console.log('hello')

            console.log('world')
        }
        //2.2.函数块中只有一行代码
        const mul=(num1,num2)=> num1*num2;
        console.log(mul(2,3))

        const demo=()=>console.log('hello');
    </script>
</body>
</html>